package com.apesource.project02.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel
public class ResponseEntity<T> {
        @ApiModelProperty(value = "返回状态值", example = "200")
        private int statusCode;
        @ApiModelProperty(value = "返回信息",example = "success")
        private String message;
        @ApiModelProperty(value = "返回的数据信息",example = "详情数据")
        private T data;

    public ResponseEntity() {
    }

    public ResponseEntity(int statusCode, String message, T data) {
            this.statusCode = statusCode;
            this.message = message;
            this.data = data;
        }

        // Getters and Setters
        public int getStatusCode() {
            return statusCode;
        }

        public void setStatusCode(int statusCode) {
            this.statusCode = statusCode;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public T getData() {
            return data;
        }

        public void setData(T data) {
            this.data = data;
        }
    }